package com.yanzhu.service.model.mix;

import lombok.Data;

import java.net.URLDecoder;
import java.util.List;

/**
 * @Author: 方炎柱
 * @Description:
 * @Date: Created in 12:46 2018/2/4
 * @Modified:
 */
@Data
public class RedPacketsDetail {

    //视频id
    private long vid;

    //总金额
    private float money;

    //红包总数
    private int sum;

    //红包剩余个数
    private int remain;

    //红包内容
    private String title;

    // 昵称
    private String nickname;

    // 头像
    private String avatar;

    private List<GrabRedPacketsDetail> grabRedPacketsDetails;

    public void setNickname(String nickname) throws Exception {
        this.nickname = URLDecoder.decode(nickname, "utf-8");
    }
}
